package Thread;

import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

public class ThreadDemo {
    public static void main(String[] args) throws InterruptedException {
        //实例化一个阻塞队列
        BlockingDeque<Integer> blockingDeque = new LinkedBlockingDeque<>();
        //插入一个元素20
        blockingDeque.put(20);
    }
}
